package com.evaluation_system.service;

import com.evaluation_system.pojo.DTO.EvaluatorPageQueryDTO;
import com.evaluation_system.pojo.Result.PageResult;
import com.evaluation_system.pojo.entity.Evaluator;
import com.evaluation_system.pojo.entity.saveFileInfo;

import java.util.List;

public interface EvaluatorService {
    public List<saveFileInfo> readFile(int size,int page,String filename);

    public  byte[] getDownloadpdf(Integer id);

    byte[] decryptionPdf(byte[] pdfBytes,Integer id);

    String getDownloadUrl(Integer id ,byte[] pdfBytes);

    void insertIntoScore(Integer fileId, Integer evaluatorId, Integer score);

    PageResult<Evaluator> pageQuery(EvaluatorPageQueryDTO evaluatorPageQueryDTO);

    void add(Evaluator evaluator);

    void update(Evaluator evaluator);

    void deleteById(Integer id);

    //List<saveFileInfo> readFileForChecker(int size, int page, String filename);
}
